import * as path from "path";
import * as fse from "fs-extra";
import { resolvePath } from "./utils";

export const XML_DIR = "./data";
export const IMAGE_DIR = "./data";
export const OUTPUT_DIR = "./output";

export function ensurePreActions() {
	fse.ensureDirSync(resolvePath(XML_DIR));
	fse.ensureDirSync(resolvePath(IMAGE_DIR));
	fse.ensureDirSync(resolvePath(OUTPUT_DIR));
	fse.ensureDirSync(path.resolve(resolvePath(OUTPUT_DIR), "xml"));
	fse.ensureDirSync(path.resolve(resolvePath(OUTPUT_DIR), "image"));
}
